// 注册全局功能
import type, { App } from 'vue';
import { setupDirective } from '@/directive';
import { setupStore } from '@/store';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';

export default {
  install(app: App<Element>) {
    // 注册 Ant Design Vue
    app.use(Antd);
    // 自定义指令(directive)
    setupDirective(app);
    // // 路由(router)
    // setupRouter(app);
    // 状态管理(store)
    setupStore(app);
  },
};
